//
//  UIFontExtension.swift
//  DMRCommonBaseLib
//
//  Created by edy on 2025/10/28.
//

import Foundation
import UIKit

public extension UIFont {
    
    // MARK: - Icon Font
    @objc class func iconfont(name: String, size: CGFloat) -> UIFont {
//        let name = "iconfont"
        let font = UIFont(name: name, size: size)
        if font == nil {
            assert((font != nil), "UIFont object should not be nil, check if the font file is added to the application bundle and you're using the correct font name.")
        }
        return font ?? UIFont.systemFont(ofSize: 18)
    }

}
